import request from '@/utils/request'

//获取引用场站详细信息带计费模型
export function getStationDetail(id) {
  return request({
    url: `/quoteStation/quoteStation/getStationDetail/${id}`,
    method: 'get'
  })
}

//所有引用场站
export function listAllQuoteStation() {
  return request({
    url: '/quoteStation/quoteStation/all/list',
    method: 'get'
  })
}

// 查询引用场站列表
export function listQuoteStation(query) {
  return request({
    url: '/quoteStation/quoteStation/list',
    method: 'get',
    params: query
  })
}

// 查询引用场站详细
export function getQuoteStation(id) {
  return request({
    url: '/quoteStation/quoteStation/' + id,
    method: 'get'
  })
}

// 新增引用场站
export function addQuoteStation(data) {
  return request({
    url: '/quoteStation/quoteStation',
    method: 'post',
    data: data
  })
}

// 修改引用场站
export function updateQuoteStation(data) {
  return request({
    url: '/quoteStation/quoteStation',
    method: 'put',
    data: data
  })
}

// 删除引用场站
export function delQuoteStation(id) {
  return request({
    url: '/quoteStation/quoteStation/' + id,
    method: 'delete'
  })
}
